﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReactiveUI;
using System.Threading.Tasks;

namespace testapp.ViewModels
{
    public class LoginWindowViewModel : ViewModelBase
    {
        private string account;
        private string password;
        private bool autoLogin;
        private bool rememberPassword;
        private bool enabled;

        public LoginWindowViewModel() : base()
        {
            this.account = string.Empty;
            this.password = string.Empty;
            this.autoLogin = false;
            this.rememberPassword = false;
            this.enabled = true;
        }

        public string Account
        {
            get => account;
            set => this.RaiseAndSetIfChanged(ref account, value);
        }

        public string Password
        {
            get => password;
            set => this.RaiseAndSetIfChanged(ref password, value);
        }

        public bool AutoLogin
        {
            get => this.autoLogin;
            set => this.RaiseAndSetIfChanged(ref autoLogin, value);
        }

        public bool RememberPassword
        {
            get => this.rememberPassword;
            set => this.RaiseAndSetIfChanged(ref rememberPassword, value);
        }

        public bool Enabled
        {
            get => this.enabled;
            set => this.RaiseAndSetIfChanged(ref enabled, value);
        }
    }
}
